﻿using GameFramework.Event;
using GameFramework;

namespace TowerDefence_Zombie
{
    public class OpenUIEventArgs : GameEventArgs
    {
        public static readonly int EventId = typeof(OpenUIEventArgs).GetHashCode();

        public string UIAssetsPath
        {
            get;
            private set;
        }

        public OpenUIEventArgs()
        {
            UIAssetsPath = "";
        }

        public override int Id
        {
            get
            {
                return EventId;
            }
        }


        public object UserData
        {
            get;
            private set;
        }

        public static OpenUIEventArgs Create(string uiAssetsPath)
        {
            OpenUIEventArgs playerEnergyChangeEventArgs = ReferencePool.Acquire<OpenUIEventArgs>();
            playerEnergyChangeEventArgs.UIAssetsPath = uiAssetsPath;
            return playerEnergyChangeEventArgs;
        }

        public override void Clear()
        {
            UIAssetsPath = "";
        }
    }
}